/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.fresh.bus.canoe.message;

/**
 *
 * @author panzd
 */
abstract public class Message {

    private short opcode;
    private Object data;

    public void setOpcode(short opcode) {
        this.opcode = opcode;
    }

    public short getOpcode() {
        return opcode;
    }

    /**
     * @return the data
     */
    public Object getData() {
        return data;
    }

    /**
     * @param body the body to set
     */
    public void setData(Object data) {
        this.data = data;
    }
}
